import re

names = open("E:\\python_learning\\note\\names.txt")

p = "(c.a)"
for c in names:
    c = c.strip().lower()
    result = re.search(p, c)
    if result:
        print("name in {}".format(c))

names.close()
